package com.newasia.management.converter;


import com.newasia.management.dal.item.entitys.ItemBrand;
import com.newasia.management.dto.productBrand.BrandDto;
import com.newasia.management.dto.productBrand.ChangeBrandRequest;
import com.newasia.management.dto.productBrand.CreateBrandRequest;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ItemBrandConverter {
    @Mappings({})
    ItemBrand req2brand(CreateBrandRequest request);

    @Mappings({})
    ItemBrand changereq2brand(ChangeBrandRequest request);


    List<BrandDto> item2dto(List<ItemBrand> itemBrand);


}
